<?php

namespace App\Http\Controllers\Home;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Session;

class IndexController extends Controller
{
    public function index(){
    	$res = DB::table('house')->get()->map(function ($value) {return (array)$value;})->toArray();
        return view('home/index.index',['res'=>$res]);
    }
    
}
